package cn.net.dpi.shp.model.entity;

import cn.net.dpi.shp.handler.PolygonTypeHandler;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import org.locationtech.jts.geom.Polygon;

/**
 * 交通信号灯实体
 *
 * @author ake
 * @since 2024-12-27
 */
@Getter
@Setter
@TableName(value = "hd_trafficlight", autoResultMap = true)
public class HdTrafficlight extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 交通灯类型
     */
    private Long type;

    /**
     * 灯泡个数
     */
    private Long num;

    /**
     * 交通灯指向采用组合的形式录入，用“|"隔开
     */
    private String head;

    /**
     * 关联道路编号外键，引用 hd_link 表link_id
     */
    private String refLink;

    /**
     * 设施编号主键，全国唯
     */
    private String objectId;

    /**
     * 关联车道编号可多选，用“丨”分开
     */
    private String refLane;

    /**
     * 设施几何形态
     */
    private String objectGeo;

    /**
     * 图幅编号
     */
    private String meshId;

    /**
     * 行政区划代码
     */
    private String adminCode;

    @TableField(typeHandler = PolygonTypeHandler.class)
    private Polygon geometry;

    private Long fileId;

    private String version;

    private Integer versionFlag;
}
